
<?php 
 include_once '../../conn/all.php';
 $id=$_GET['id'];
 $res=sql('s', 'colum', '*', 'where id='.$id);
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="../templates/met/images/css/reset.css" rel="stylesheet" />
<link rel="stylesheet" type="text/css" href="../templates/met/images/css/metinfo.css" />
<script type="text/javascript"src="../include/metvar.js"></script>
<script type="text/javascript" src="../include/metinfo.js"></script>
<script type="text/javascript" src="../../public/js/metinfo-min.js"></script>
<script type="text/javascript" src="../templates/met/images/js/iframes.js"></script>
<script type="text/javascript" src="../templates/met/images/js/cookie.js"></script>
<style type="text/css">
body{
	font-size: ; 
	font-family:;
	text-align:center;
}
</style>
<script type="text/javascript">
//ajax执行时间
var time=200;
var lang = 'cn';
var metimgurl='../templates/met/images/';
</script>
<script type="text/javascript">
	$(document).keypress(function(e){  
	var type = e.keyCode||e.which||e.charCode;
		if(type==27){ 		
			parent.sitemp('set/sitemap.php?lang=cn&admintp=&langset=cn');  
		}				
	});
</script>

<title>修改一级栏目</title>
</head>
<script language='javascript'>var metadminpagename=1;</script>
<body>
<form method="post" name="myform" action="../control.php?oper=column_editor&id=<?=$id;?>" >
	<table cellpadding="2" cellspacing="1" class="table">
        <tr> 
			<td colspan="3" align="center" class="title">修改一级栏目</td>
        </tr>
		<tr> 
        </tr> 
		  <tr> 
            <td class="text"><font class="must">*</font>栏目名称</td>
            <td class="input"><input name="name" type="text" class="text nonull" value="<?=$res['name'];?>" /></td>
          </tr> 

		<tr>  
            <td class="text">同级栏目排序</td>
            <td class="input"><input name="no_order" type="text" class="text small" value="<?=$res['wed_order'];?>" /></td>
        </tr>
		<tr> 
            <td class="text">模块标识</td>
            <td class="input">
				<input name="index_num" type="text" class="text small" value="<?=$res['home_order'];?>" />
				请参考“<a href="../set/info.php">模板设置导航</a>”进行设置,一般可为0
			</td>
        </tr>
		<tr> 
            <td class="text">导航栏显示</td>
            <td class="input">
				<input name="nav" type="radio" value="0" class="radio" id="radio1"  <?php  if ($res['wed_isshow']=="0") { echo "checked='checked'";}?> /><label for="radio1">不显示</label>&nbsp;
				<input name="nav" type="radio" value="1" class="radio" id="radio2" <?php  if ($res['wed_isshow']=="1") { echo "checked='checked'";}?> /><label for="radio2">头部主导航条</label>&nbsp;
				<input name="nav" type="radio" value="2" class="radio" id="radio3" <?php  if ($res['wed_isshow']=="2") { echo "checked='checked'";}?> /><label for="radio3">首页显示</label>&nbsp;
				<input name="nav" type="radio" value="3" class="radio" id="radio4" <?php  if ($res['wed_isshow']=="3") { echo "checked='checked'";}?> /><label for="radio4">都显示 </label>&nbsp;
			</td>
        </tr> 
		  <tbody id="columnin" style=" width:100%; display:">
	
		<tr> 
            <td class="text"><font class="must">*</font>所属模块</td>
            <td class="input"><select name="module" >

<option value="1" <?php  if ($res['module']=="1") { echo "selected='selected'";}?>>文章模块</option>

<option value="2" <?php  if ($res['module']=="2") { echo "selected='selected'";}?>>套餐报价</option>

<option value="3" <?php  if ($res['module']=="3") { echo "selected='selected'";}?>>文章列表</option>

<option value="4" <?php  if ($res['module']=="4") { echo "selected='selected'";}?>>图片模块</option>

<option value="5" <?php  if ($res['module']=="5") { echo "selected='selected'";}?>>视频模块</option>

<option value="6" <?php  if ($res['module']=="6") { echo "selected='selected'";}?>>公告模块</option>

<option value="7" <?php  if ($res['module']=="7") { echo "selected='selected'";}?>>抽奖模块</option>

<option value="8" <?php  if ($res['module']=="8") { echo "selected='selected'";}?>>反馈系统</option>

<option value="9" <?php  if ($res['module']=="9") { echo "selected='selected'";}?>>友情链接</option>

            </select></td>
        </tr> 
		<tr> 
            <td class="text"><font class="must">*</font>栏目文件夹</td>
            <td class="input">tempel</td>
        </tr> 
		  

		  <tr id="static2" > 
            <td class="text">是否允许添加内容</td>
            <td class="input">是</td>
        </tr>

		<tr> 
            <td class="text">关键词</td>
            <td class="input"><input name="keywords" type="text" class="text" maxlength="200" value="<?=$res['keywords'];?>" />多个关键词请用","隔开</td>
        </tr>
		<tr> 
            <td class="text">简短描述</td>
            <td class="input"><textarea name="description" class="textarea keytext" cols="50" rows="4" ><?=$res['description'];?></textarea></td>
        </tr>
	
		<tr> 
            <td class="text">访问权限</td>
            <td class="input">
            <select name="access">
	
			<option value="0" <?php  if ($res['wed_right']=="0") { echo "selected='selected'";}?>>不限</option>
	
			<option value="1" <?php  if ($res['wed_right']=="1") { echo "selected='selected'";}?>>普通会员</option>
	
			<option value="2" <?php  if ($res['wed_right']=="2") { echo "selected='selected'";}?>>代理商</option>
	
			<option value="3" <?php  if ($res['wed_right']=="3") { echo "selected='selected'";}?>>管理员</option>
	
			</select>
				</td>
	
        </tr>
	</tbody>
	
		<tr>
			<td class="text"></td>
			<td class="submit">
				<input type="submit" name="Submit" value="保存" class="submit" onclick="return Smit($(this),'myform');" />
				<input type="reset" name="Submit" value="重置" class="reset" /> 
			</td>
        </tr>
       
		<tr>
		<td class="footer" colspan="2"> </td>
	</tr>
</table>
 </form>
</body>
</html>
